package com.graduation.lastproject.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Bookorder extends Page{
    private String id;
    private String userPhone;
    private String hotelId;
    private String hotelNameRoom;
    private String inTime;
    private String outTime;
    private Integer rooms;
    private Integer peoples;
    private Integer nights;
    private Integer total_price;
    private String bookuser;
    private String book_user_phone;
    private String out_trade_no;
    private String gmt_creat;
    private String gmt_payment;

    //3.22  trade_state  review_state
    private Integer trade_state;
    private Integer reviewState;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getHotelId() {
        return hotelId;
    }

    public void setHotelId(String hotelId) {
        this.hotelId = hotelId;
    }

    public String getHotelNameRoom() {
        return hotelNameRoom;
    }

    public void setHotelNameRoom(String hotelNameRoom) {
        this.hotelNameRoom = hotelNameRoom;
    }

    public String getInTime() {
        return inTime;
    }

    public void setInTime(String inTime) {
        this.inTime=inTime;
    }

    public String getOutTime() {
        return outTime;
    }

    public void setOutTime(String outTime) {
       this.outTime=outTime;
    }

    public Integer getRooms() {
        return rooms;
    }

    public void setRooms(Integer rooms) {
        this.rooms = rooms;
    }

    public Integer getPeoples() {
        return peoples;
    }

    public void setPeoples(Integer peoples) {
        this.peoples = peoples;
    }

    public Integer getNights() {
        return nights;
    }

    public void setNights(Integer nights) {
        this.nights = nights;
    }

    public Integer getTotal_price() {
        return total_price;
    }

    public void setTotal_price(Integer total_price) {
        this.total_price = total_price;
    }

    public String getBookuser() {
        return bookuser;
    }

    public void setBookuser(String bookuser) {
        this.bookuser = bookuser;
    }

    public String getBook_user_phone() {
        return book_user_phone;
    }

    public void setBook_user_phone(String book_user_phone) {
        this.book_user_phone = book_user_phone;
    }

    public String getOut_trade_no() {
        return out_trade_no;
    }

    public void setOut_trade_no(String out_trade_no) {
        this.out_trade_no = out_trade_no;
    }

    public String getGmt_creat() {
        return gmt_creat;
    }

    public void setGmt_creat(Date gmt_creat) {
        this.gmt_creat = dfLong.format(gmt_creat);
    }

    public String getGmt_payment() {
        return gmt_payment;
    }

    public void setGmt_payment(Date gmt_payment) {
        this.gmt_payment = dfLong.format(gmt_payment);
    }

    public Integer getTrade_state() {
        return trade_state;
    }

    public void setTrade_state(Integer trade_state) {
        this.trade_state = trade_state;
    }

    public Integer getReviewState() {
        return reviewState;
    }

    public void setReviewState(Integer reviewState) {
        this.reviewState = reviewState;
    }

    @Override
    public String toString() {
        return "bookorder{" +
                "id='" + id + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", hotelId='" + hotelId + '\'' +
                ", hotelNameRoom='" + hotelNameRoom + '\'' +
                ", inTime=" + inTime +
                ", outTime=" + outTime +
                ", rooms=" + rooms +
                ", peoples=" + peoples +
                ", nights=" + nights +
                ", total_price=" + total_price +
                ", bookuser='" + bookuser + '\'' +
                ", book_user_phone='" + book_user_phone + '\'' +
                ", out_trade_no='" + out_trade_no + '\'' +
                ", gmt_creat=" + gmt_creat +
                ", gmt_payment=" + gmt_payment +
                ", trade_state=" + trade_state +
                ", reviewState=" + reviewState +
                '}';
    }
    private static SimpleDateFormat dfLong = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    private static SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd ");
}
